#ifndef PLUGINMANAGER_H
#define PLUGINMANAGER_H

#include <QPluginLoader>
#include <QString>
#include <QDir>
#include "PluginInterface_T1_V0.h"
#include "PluginInterface_T2_V0.h"

class PluginManager
{
public:
    PluginManager();

    //加载插件
    bool loadPlugin(QString path);
    bool unloadPlugin();

    PluginInterface_T1_V0 *pluginInterfaceT1V0[1000];
    PluginInterface_T2_V0 *pluginInterfaceT2V0[1000];
private:
#define PLUGIN_MAXCOUNT 1000
    QPluginLoader pluginLoader;
    int pluginT1V0Count;
    int pluginT2V0Count;
};

#endif // PLUGINMANAGER_H
